#include"Ex1_1.h"

CPoint::CPoint()
{
  memset(this, 0, sizeof(*this));
}

CPoint::CPoint(U32 x, U32 y)
{
  m_PointX = x;
  m_PointY = y;
}

CPoint::CPoint(const CPoint& point)
{
  m_PointX = point.m_PointX;
  m_PointY = point.m_PointY;
}

CPoint::~CPoint()
{
  memset(this, 0, sizeof(*this));
}

U32 CPoint::GetPointX() const
{
  return m_PointX;
}

U32 CPoint::GetPointY() const
{
  return m_PointY;
}

void CPoint::SetPointX(U32 x)
{
  m_PointX = x;
}

void CPoint::SetPointY(U32 y)
{
  m_PointY = y;
}

void CPoint::SetPoint(U32 x, U32 y)
{
  m_PointX = x;
  m_PointY = y;
}

